<!DOCTYPE html>
<html>
<head>
  <title>AutoParts: Suppliers</title>
  <%= stylesheet_link_tag 'jquery-ui-1.8.16.custom.css', 'application.css', 'suppliers.css' %>
  <%= javascript_include_tag  "jquery.js" %>
  <%= javascript_include_tag  "jquery-ui-1.8.16.custom.min.js" %>
  <%= javascript_include_tag "jquery-rails.js" %>  
  <%= javascript_include_tag "autocomplete-rails.js" %>
  <%= javascript_include_tag "application.js" %>
  <%= csrf_meta_tag %>
</head>
<body>

<div class = "suppliersContentArea">
	<div class = "suppliersContent">
		<div class = "suppliersContentLeft">
			<div class = "suppliersLogin">
				<% if current_supplier %>
					Logged in as <%= current_supplier.email %>.
					<%= link_to "Log out", suppliers_logout_path %>
				<% end %>
			</div>
			<div class = "suppliersMenu">
				<%= link_to "Filters", suppliers_filters_path %><br />
			</div>
		</div>
		<div class = "suppliersContentMiddle">
			<% flash.each do |name, msg| %>
			  <%= content_tag :div, msg, :id => "flash_#{name}" %>
			<% end %>			
			
			<%= yield %>
		</div>
	</div>
</div>

</body>
</html>
